<div class="workplace">
	<div class="row-fluid">
        <div class="span12">
			<div class="widgetButtons">                        
                <div class="bb"><a href="<?=URL_ADMIN?>member" class="tipb" title="List members"><span class="ibw-user"></span></a></div>
                <!-- <div class="bb">
	                <a href="#" class="tipb" title="Upload"><span class="ibw-folder"></span></a>
	                <div class="caption red">31</div>
                </div> -->
                <div class="bb"><a href="<?=URL_ADMIN?>member/add" class="tipb" title="Add new member"><span class="ibw-plus"></span></a></div>
                <div class="bb"><a href="<?=URL_ADMIN?>person" class="tipb" title="List persons"><span class="ibw-users"></span></a></div>
                <!-- <div class="bb">
                    <a href="#" class="tipb" title="Send mail"><span class="ibw-mail"></span></a>
                    <div class="caption green">31</div>
                </div> -->
                <div class="bb"><a href="<?=URL_ADMIN?>setting" class="tipb" title="Settings"><span class="ibw-settings"></span></a></div>
            </div>
        </div>
    </div>

    <div class="row-fluid">        
        <div class="span12">                    

            <div class="wBlock green clearfix">                        
                <div class="dSpace">
                    <h3>Users</h3>
                    <span class="mChartBar" sparkType="bar" sparkBarColor="white"><!--5,10,15,20,23,21,25,20,15,10,25,20,10--></span>
                    <span class="number"><?=$total_members?></span>                    
                </div>
                <div class="rSpace">
                    <span><?=$memActive?> <b>active</b></span>
                    <span><?=$memUnActive?> <b>unactive</b></span>
                </div>                          
            </div>                                                            
        </div>         
    </div>            

    <!-- <div class="dr"><span></span></div> 

     <div class="row-fluid">

        <div class="span4">
            <div class="head clearfix">
                <div class="isw-archive"></div>
                    <h1>Orders</h1>
                    <ul class="buttons">                            
                        <li>
                            <a href="#" class="isw-settings"></a>
                            <ul class="dd-list">
                                <li><a href="#"><span class="isw-list"></span> Show all</a></li>
                                <li><a href="#"><span class="isw-ok"></span> Approved</a></li>
                                <li><a href="#"><span class="isw-minus"></span> Unapproved</a></li>
                                <li><a href="#"><span class="isw-refresh"></span> Refresh</a></li>
                            </ul>
                        </li>
                    </ul>                         
            </div>
            <div class="block-fluid accordion">
                <h3>November 2012</h3>
                <div>
                    <table cellpadding="0" cellspacing="0" width="100%" class="sOrders">
                        <thead>
                            <tr>
                                <th width="60">Date</th><th>User</th><th width="60">Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><span class="date">Nov 6</span><span class="time">12:35</span></td>
                                <td><a href="#">Aqvatarius</a></td>
                                <td><span class="price">$1366.12</span></td>
                            </tr>                                  
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="3" align="right"><button class="btn btn-small">More...</button></td>
                            </tr>
                        </tfoot>
                    </table>
                </div>                        
            </div>
        </div>

        <div class="span4">
            <div class="head clearfix">
            <div class="isw-cloud"></div>
                <h1>Registrations</h1>
                <ul class="buttons">        
                    <li>
                        <a href="#" class="isw-users"></a>
                    </li>
                    <li>
                        <a href="#" class="isw-settings"></a>
                        <ul class="dd-list">
                            <li><a href="#"><span class="isw-list"></span> Show all</a></li>
                            <li><a href="#"><span class="isw-mail"></span> Send mail</a></li>
                            <li><a href="#"><span class="isw-refresh"></span> Refresh</a></li>
                        </ul>
                    </li>
                    <li class="toggle"><a href="#"></a></li>
                </ul> 
            </div>
            <div class="block users scrollBox">
                <div class="scroll" style="height: 270px;">
                    <div class="item clearfix">
                        <div class="image"><a href="#"><img src="img/users/aqvatarius_s.jpg" width="32"/></a></div>
                        <div class="info">
                            <a href="#" class="name">Aqvatarius</a>                                                   
                            <div class="controls">                                    
                                <a href="#" class="icon-ok"></a>
                                <a href="#" class="icon-remove"></a>
                            </div>                                                                    
                        </div>
                    </div> 
                </div>
            </div>
        </div>            
    </div> -->
    <!-- <div class="dr"><span></span></div>  -->           

    <!-- <div class="row-fluid">
        <div class="span12">
            <div class="head clearfix">
                <div class="isw-graph"></div>
                <h1>Chart</h1>
            </div>
	        <div class="block">
	            <div id="chart-1" style="height: 300px; margin-top: 10px;">
	            </div>
	        </div>
    	</div>
    </div> -->
    <div class="dr"><span></span></div>
    <?php if(count($newest_members)) : ?>
    <div class="row-fluid">
    	
        <div class="span12">                    
            <div class="head clearfix">
                <div class="isw-grid"></div>
                <h1>Newest Members</h1>      
                <ul class="buttons">
                    <li><a href="<?=URL_ADMIN?>member" class="isw-list tip" title="View more"></a></li>                                                   
                    <li><a href="#" class="isw-delete tip" title="Delete"></a></li>
                                <!-- <li>
                                    <a href="#" class="isw-settings"></a>
                                    <ul class="dd-list">
                                        <li><a href="#"><span class="isw-plus"></span> New document</a></li>
                                        <li><a href="#"><span class="isw-edit"></span> Edit</a></li>
                                        <li><a href="#"><span class="isw-delete"></span> Delete</a></li>
                                    </ul>
                                </li> -->
                </ul>                       
            </div>
            <div class="block-fluid">
                <table cellpadding="0" cellspacing="0" width="100%" class="table">
                    <thead>
                        <tr>
            	            <th><input type="checkbox" name="checkall"/></th>                                        
                                <th width="25%">Name</th>
                                <th width="25%">E-mail</th>                
                                <th width="25%">Status</th>
                            </tr>
                        </thead>

                        <tbody>
                        	<?php foreach($newest_members as $item) : ?>
                            <tr>
                                <td><input type="checkbox" name="checkbox" value="<?=$item['id']?>"/></td>                                  
                                <td><?=$item['fullname']?></td>
                                <td><?=$item['email']?></td>     
                                <?php if($item['status'] == 1) : ?>              
                                	<td><span class="label label-success">Actived</span></td>
                            	<?php else :?>
                            		<td><span class="label label-success">Unactive</span></td>
                        		<?php endif ?>
                            </tr>
                            <?php endforeach ?>                            
                        </tbody>
                </table>
            </div>
        </div>                                
    	<?php endif ?>
    </div>
    <?php if(count($persons)) : ?>
    <div class="row-fluid">
        <div class="span12">                    
            <div class="head clearfix">
                <div class="isw-grid"></div>
                <h1>Newest Persons</h1>      
                <ul class="buttons">
                    <li><a href="<?=URL_ADMIN?>person" class="isw-list tip" title="View more"></a></li>                                                   
                    <li><a href="#" class="isw-delete tip" title="Delete"></a></li>
                                <!-- <li>
                                    <a href="#" class="isw-settings"></a>
                                    <ul class="dd-list">
                                        <li><a href="#"><span class="isw-plus"></span> New document</a></li>
                                        <li><a href="#"><span class="isw-edit"></span> Edit</a></li>
                                        <li><a href="#"><span class="isw-delete"></span> Delete</a></li>
                                    </ul>
                                </li> -->
                </ul>                       
            </div>
            <div class="block-fluid">
                <table cellpadding="0" cellspacing="0" width="100%" class="table">
                    <thead>
                        <tr>
            	            <th><input type="checkbox" name="checkall"/></th>                                        
                            <th width="25%">Name</th>
                            <th width="25%">Country</th>                
                            <th width="25%">State</th>
                            <th width="25%">Status</th>
                        </tr>
                    </thead>

                    <tbody>
                       	<?php foreach($persons as $item) : ?>
                        <tr>
                            <td><input type="checkbox" name="checkbox" value="<?=$item['id']?>"/></td><td><?=$item['name']?></td>
                            <td><?=$this->person_model->get_name_country($item['country'])?></td> 
                            <td><?=$this->person_model->get_name_state($item['state'])?></td>     
                            <?php if($item['public'] == 1) : ?>              
                            <td><span class="label label-success">Public</span></td>
                            <?php else :?>
                            	<td><span class="label label-success">Private</span></td>
                        	<?php endif ?>
                        </tr>
                        <?php endforeach ?>                            
                    </tbody>
                </table>
            </div>
        </div>                                
    	<?php endif ?>
    </div>
    <div class="dr"><span></span></div>

</div>
 